import Vue from 'vue'
import VueRouter from 'vue-router'

//2.配置路由   注意：名字
 



import test from '../components/home/test';
import login from '../components/log/login';
import register from '../components/log/register';
import forget_pwd from '../components/log/forget_pwd';

import home from     '../components/home/home';
import recharge from '../components/home/recharge';
import recharge_notes_USDT from '../components/home/recharge_notes_USDT';
import recharge_notes_AZC from '../components/home/recharge_notes_AZC';
import recharge_convert from '../components/home/recharge_convert';
import recharge_transfer_USDT from '../components/home/recharge_transfer_USDT';
import recharge_transfer_AZC from '../components/home/recharge_transfer_AZC';
import withdraw from '../components/home/withdraw';

import device from '../components/device/device';

import transaction from '../components/transaction/transaction';
import transaction_detail from '../components/transaction/transaction_detail';
import transaction_initiate from '../components/transaction/transaction_initiate';


import treasureHunt from '../components/treasureHunt/treasureHunt';



import mine from '../components/my/mine';
import upload_auth from '../components/my/upload_auth';
import setting_pwd from '../components/my/setting_pwd';
import auth_code from '../components/my/auth_code';
import gradeRule from '../components/my/gradeRule';
import invite from '../components/my/invite'; 
import ranking from '../components/my/ranking'; 
import setting from '../components/my/setting'; 
import my_tran from '../components/my/my_tran'; 
import signIn from '../components/my/signIn'; 
import orderDetail from '../components/my/orderDetail'; 
import up_nickname from '../components/my/up_nickname'; 
import verif_pwd from '../components/my/verif_pwd'; 

const routes = [
  { path: '/', name: 'home',component: home },
  // { path: '/home',name:'home', component: home, meta: { cache: true } },
  // { path: '/device',name:'device' , component: device,meta: { cache: true } },
  // { path: '/transaction',name:'transaction', component: transaction,meta: { cache: true } },
  // { path: '/mine',name:'mine', component: mine,meta: { cache: true } },
  // { path: '/treasureHunt',name:'treasureHunt', component: treasureHunt,meta: { cache: true }  },
   
  // { path: '/', name: 'home',component: home, meta: { cache: true }  },
  
  { path: '/test',name:'test', component: test },
  { path: '/home',name:'home', component: home },
  { path: '/device',name:'device' , component: device },
  { path: '/transaction',name:'transaction', component: transaction},
   { path: '/treasureHunt',name:'treasureHunt', component: treasureHunt},
  { path: '/mine',name:'mine', component: mine },


  { path: '/transaction_detail',name:'transaction_detail', component: transaction_detail },
  { path: '/transaction_initiate',name:'transaction_initiate', component: transaction_initiate },
  
  
  { path: '/login', name: 'login',component: login},
  { path: '/register', name: 'register',component: register},
  { path: '/forget_pwd', name: 'forget_pwd',component: forget_pwd},

  { path: '/upload_auth',name:'upload_auth', component: upload_auth },
  { path: '/setting_pwd',name:'setting_pwd', component: setting_pwd },
  { path: '/auth_code',name:'auth_code', component: auth_code },
  { path: '/gradeRule',name:'gradeRule', component: gradeRule },
  { path: '/invite',name:'invite', component: invite },
  { path: '/ranking',name:'ranking', component: ranking },
  { path: '/setting',name:'setting', component: setting },
  { path: '/signIn',name:'signIn', component: signIn },
  { path: '/my_tran',name:'my_tran', component: my_tran },
  { path: '/orderDetail',name:'orderDetail', component: orderDetail },
  { path: '/up_nickname',name:'up_nickname', component: up_nickname },
  { path: '/verif_pwd',name:'verif_pwd', component: verif_pwd },
  
  

  { path: '/recharge',name:'recharge', component: recharge },
  { path: '/recharge_notes_USDT',name:'recharge_notes_USDT', component: recharge_notes_USDT },
  { path: '/recharge_notes_AZC',name:'recharge_notes_AZC', component: recharge_notes_AZC },
  { path: '/recharge_convert',name:'recharge_convert', component: recharge_convert },
  { path: '/recharge_transfer_USDT',name:'recharge_transfer_USDT', component: recharge_transfer_USDT },
  { path: '/recharge_transfer_AZC',name:'recharge_transfer_AZC', component: recharge_transfer_AZC },
  { path: '/withdraw',name:'withdraw', component: withdraw }
  
  
  
]
Vue.use(VueRouter)

//3.实例化VueRouter  注意：名字
const router = new VueRouter({
    routes // (缩写) 相当于 routes: routes
})


export default router;